cmake_minimum_required(VERSION 3.25)
project(Obj_Study5)

set(CMAKE_CXX_STANDARD 17)

add_executable(Obj_Study5 main.cpp Object/Person.cpp Object/Person.h Object/Building.cpp Object/Building.h Object/GoodGay.cpp Object/GoodGay.h)

file(GLOB OBJECT_SOURCES "Object/*.cpp")
target_sources(Obj_Study5 PRIVATE ${OBJECT_SOURCES})

# 包含头文件目录
target_include_directories(Obj_Study5 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Object)